%%%-------------------------------------------------------------------
%% @doc game-app public API
%% @end
%%%-------------------------------------------------------------------

-module(game_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%%====================================================================
%% API
%%====================================================================

start(_StartType, _StartArgs) ->
%%    io:format("=== define:~w",[?debug_test]),
    {ok, _Pid} = ranch:start_listener(tcp_reverse, ranch_tcp, #{socket_opts => [{port, 9088}]}, game_protocol, []),
%%    io:format("~w", [{node(), Pid}]),
    game_app_sup:start_link(),
    game_app_sup:start_child(pub_data_svr_sup),
    
    ok.
%%    game_app_sup:start_child(ranch_sup).
%%    Ret.

%%--------------------------------------------------------------------
stop(_State) ->
    ok.

%%====================================================================
%% Internal functions
%%====================================================================
